 package handling.login.handler;
 
 import client.MapleClient;
 import org.apache.mina.core.session.IoSession;
 import server.ServerProperties;
 import tools.FileoutputUtil;
 import tools.data.LittleEndianAccessor;
 import tools.packet.LoginPacket;
 
 public class SetGenderHandler
 {
   public static void handlePacket(LittleEndianAccessor slea, MapleClient c)
   {
     byte gender = slea.readByte();
     String username = slea.readMapleAsciiString();
     if (c.getAccountName().equals(username)) {
       c.setGender(gender);
       c.getSession().write(LoginPacket.genderChanged(c));
       c.getSession().write(LoginPacket.getLoginFailed(22));
     } else {
          System.err.println("there 21 ");
       c.getSession().close(true);
       if (ServerProperties.IsLvkejian()) {
         String SendTo = "\r\n时间：" + FileoutputUtil.CurrentReadable_Time() + "  对玩家进行掉线处理 ----14 ";
         FileoutputUtil.packetLog("log\\玩家进行掉线处理.log", SendTo);
       }
     }
   }
 }

/* Location:           C:\Users\文炳\Desktop\CXFBY\114Maplewing.jar
 * Qualified Name:     handling.login.handler.SetGenderHandler
 * JD-Core Version:    0.6.2
 */